package cn.house.houseai.service;

import cn.house.houseai.entify.Device;
import cn.house.houseai.entify.Sensors;
import cn.house.houseai.vo.ResultVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author 羡y
 * @date 2024/9/30
 * @Description
 */
public interface SensorsService {
    ResultVo querySensorsByUserId(Integer deviceId);
    ResultVo addSensorToUserDevices(int userId, Sensors sensors, Integer deviceId);

    ResultVo updateSensors(@Param("device_id") int device_id, @Param("sensorId") int sensor_id, @Param("sensors") Sensors sensors);
}
